#include"rungcc.hh"
void rungcc(std::string docu,std::string v)
{
std::string name;
name=docu.substr(docu.length() - 3,2);
std::system(("gcc-"+v+" "+docu+" -o "+name).c_str());
std::system(("./"+name).c_str());

}
void rungpp(std::string docu,std::string v)
{
std::string name;
name=docu.substr(docu.length() - 4,2);
std::system(("g++-"+v+" "+docu+" -o "+name).c_str());
std::system(("./"+name).c_str());
}